<html>
<head>
<title><?=$title?></title>
</head>
<body>

<h1><?=$heading?></h1>

<? foreach($query as $row): ?>

    <p>
    <i>Tag ID A::</i><b>
        <?=$row->tag_id_a?></b>,
    <i>Tag ID B::</i><b>
        <?=$row->tag_id_b?></b>
    </p>
    
<? endforeach; ?>

</body>
</html>